package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.Region
import com.sgcc.nfc.lock.domain.repository.RegionRepository
import javax.inject.Inject

class GetRegionTreeUseCase @Inject constructor(
    private val repository: RegionRepository
) {
    suspend operator fun invoke(): NetworkResult<List<Region>> = repository.getRegionTree()
}
